<?php
/* @var $this GuestBookController */
/* @var $model GuestBook */

$this->breadcrumbs = array(
    'Guest Books' => TreTodayUrl::backendGuestBookUrl()
);
?>
<div id="" class="admin-main-wrapper form-inline">
    <div class="dataTables_wrapper">
        <?php $this->widget('zii.widgets.grid.CGridView', array(
            'id' => 'guest-book-grid',
            'dataProvider' => $model->search(),
            'filter' => $model,
            'columns' => array(
                'guest_book_id',
                'owner_id',
                'poster_id',
                'poster_name',
                'content',
                array('name' => 'post_time', 'value' => 'TreTodayCommon::formatDate($data->post_time)'),
                array(
                    'class' => 'CButtonColumn',
                    'template' => '{view}{delete}'
                ),
            ),
        )); ?>
    </div>
</div>